package com.ysstech.finance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ysstech.common.entity.PageBean;
import com.ysstech.finance.entity.Balance;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lishuangliang
 * @since 2021-04-01
 */
public interface BalanceService extends IService<Balance> {


    /**
     * 查询余额表列表信息
     *
     * @param balance
     * @param pageBean
     * @return
     * @throws Exception
     */
    public PageBean<Balance> queryAllBalance(Balance balance, PageBean pageBean) throws Exception;

    /**
     * 生成余额表
     *
     * @param balance
     * @throws Exception
     */
    public void produceBalance(Balance balance) throws Exception;

    /**
     * 查询明细的余额表数据，给估值表统计使用
     *
     * @param accountId
     * @param fdate
     * @return
     */
    public List<Balance> queryBalanceByValuation(String accountId, LocalDate fdate) throws Exception;
}
